<?php
namespace app\api\controller;
use think\Controller;

class Order extends Controller  //api
{
    //构造函数 私有属性
	private $obj;
	public function _initialize(){
		$this->obj = model("Order");
		}
	
	
	public function payStatus()
    {
       $id = input('post.id');
	   if(!$id){
		   return show(0, 'error');
		   }
	   //判断是否登录
	   
	   $order = $this->obj->get($id);
	   if($order->pay_status == 1){
		   return show(1, 'success');
		   }
	   
	   return show(0, 'error');
	       
	}
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
}
?>